package com.itheima.service.impl;

import com.itheima.dao.UserDao;
import com.itheima.service.UserService;

/**
 * @Author 王加鑫
 * @Date 2021/7/21 19:41
 * @Since JDK 1.9
 */
public class UserServiceImpl implements UserService {

    private UserDao dao;

    public void setUserDao(UserDao dao) {
        this.dao = dao;
    }

    @Override
    public void save() {
        dao.save();
        System.out.println("UserService init ...");
    }
}
